package com.example.xl.springboot01.users.service.impl;

import com.example.xl.springboot01.users.bean.JdDept;
import com.example.xl.springboot01.users.bean.JdUser;
import com.example.xl.springboot01.users.bean.User;
import com.example.xl.springboot01.users.dao.JdDeptMapper;
import com.example.xl.springboot01.users.dao.JdUserMapper;
import com.example.xl.springboot01.users.dao.UserMapper;
import com.example.xl.springboot01.users.service.IJdDeptService;
import com.example.xl.springboot01.users.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JdDeptServiceImpl implements IJdDeptService {
    @Autowired
    private JdDeptMapper jdDeptMapper;

    /**
     * @return java.util.List<com.example.xl.springboot01.users.bean.JdDept>
     * @Author GongXl
     * @Description 查询机构树
     * @Date 004 16:49
     * @Param [pid]
     **/
    @Override
    public List<JdDept> getJdDept(Integer pid) {
        List<JdDept> category = jdDeptMapper.getCategory(1);
        return category;
    }

}
